package com.grad.why.studentsystem.mapper;

import com.grad.why.studentsystem.domain.ClassRoom;
import com.grad.why.studentsystem.domain.ClassRoomExample;
import com.grad.why.studentsystem.domain.current.CurrentClassinfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClassRoomMapper {
    int countByExample(ClassRoomExample example);

    int deleteByExample(ClassRoomExample example);

    int deleteByPrimaryKey(Integer rid);

    int insert(ClassRoom record);

    int insertSelective(ClassRoom record);

    List<ClassRoom> selectByExample(ClassRoomExample example);

    ClassRoom selectByPrimaryKey(Integer rid);

    int updateByExampleSelective(@Param("record") ClassRoom record, @Param("example") ClassRoomExample example);

    int updateByExample(@Param("record") ClassRoom record, @Param("example") ClassRoomExample example);

    int updateByPrimaryKeySelective(ClassRoom record);

    int updateByPrimaryKey(ClassRoom record);

    List<ClassRoom> getClassRoomInfoList(@Param("offset") int offset,@Param("limit") int limit,@Param("search") String search);

    long getClassRoomInfoListLength(@Param("search") String search);

    int getMaxrId();

    int classRommIsExist(@Param("classRoomName") String classRoomName);

    List<ClassRoom> getClassRoomInfos();
}